package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.SysMessage;
import cn.cdeden.knowledge.domain.dto.SysMessageDto;
import cn.cdeden.knowledge.domain.dto.SysMessageQueryParam;
import cn.cdeden.knowledge.domain.vo.SysMessageVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

public interface SysMessageService extends IService<SysMessage> {

    TableDataInfo<SysMessageVo> getMessageByUser(SysMessageQueryParam query, Pageable pageable);

    void addMessage(SysMessageDto sysMessageDto);

    boolean readMessage(Long messageId);

    boolean readMessageAll(String userId);
}
